{% extends "base.html" %}

{% block css %}
<link rel="stylesheet" type="text/css" href="/statics/css/booking.css" />
{% endblock %}

{% block javascript %}
<script type="text/javascript" src="/statics/javascript/booking.js"></script>
<script type="text/javascript" src="/statics/javascript/jquery.blockUI.js"></script>
<script type="text/javascript">
</script>
{% endblock %}

{% block title %}订单报表{% endblock %}

{% block content %}
<h1>订单报表</h1>

{% if orders %}
<table width="400" border="1" style="border-collapse: collapse">
    <tr>
        <th>日期</th><th>用户</th><th>菜单</th>
    </tr>
    {% for order in orders %}
    <tr>
        <td width="100">{{ order.date }}</td>
        <td width="100">{{ order.user.name }}</td>
        <td width="200">{{ order.dish.name }}</td>
    </tr>
    {% endfor %}
    </table>
{% endif %}
总金额: {{ total_price }}
{% endblock %}